package com.njxzc.igo.Dao;

import java.util.List;

import com.njxzc.igo.POJO.ProductsDTO;
import com.njxzc.igo.model.ProductType;
import com.njxzc.igo.model.Products;
import com.njxzc.igo.model.Seller;
import com.njxzc.igo.utils.Pager;

public interface ProductDao {
	public boolean save(Products product,ProductType productType,Seller saler); 
	
	
	public ProductType findByTypeId(int typeId);
	
	public ProductType findAllByTypeId(int typeId);
	
	public ProductType findProductTypeById(int typeId);

	public Products findProductsById(long productId);
	
	public Pager findAllBySizeAndPage(int size,int page,int type);
	
	public Products findProductsById(String productId);
	
	public List<Products> findProductsLikeName(String Name);
	
	
	public Pager PagingfindAllByKeys(int size, int page, String key,String kind);
	
	//!
	public List<String> FindAllsalersNamesByType(ProductType pt);
	
	public List<ProductType> findAll();
	
	public List<ProductType> findAllInfo();

	public ProductType findByTypeName(String typename);


	public void saveProductTypebyName(String typename);
	
	public boolean removeProductById(String id );
	
	public List<ProductsDTO> loadAllProductsDTO();


	public void updateProducts(List<ProductsDTO> list);


	public Seller findSalerBySalerName(String salername); 
	
	
}
